﻿namespace FinalPointSet.Model.Model.FieldMapping
{
    /// <summary>
    /// 数据源的字段类型
    /// </summary>
    public class DataSourceFieldType
    {
        /// <summary>
        /// 排序
        /// </summary>
        public int Sequence { get; set; } = 0;
        /// <summary>
        /// 字段类型名称
        /// </summary>
        public string Name { get; set; } = string.Empty;
        public DataSourceFieldType() { }
        public DataSourceFieldType(int sequence, string name)
        {
            Sequence = sequence;
            Name = name;
        }

        public override string? ToString()
        {
            return $"Name={Name},Sequence={Sequence}";
        }
    }
}
